package com.hxzy.mapper;

import com.hxzy.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.Set;

/**
* @author admin
* @description 针对表【sys_role(角色信息表)】的数据库操作Mapper
* @createDate 2024-04-07 10:54:29
* @Entity com.hxzy.entity.SysRole
*/
public interface SysRoleMapper extends BaseMapper<SysRole> {

    /**
     * 根据用户查询角色权限
     * @param userId
     * @return
     */
    Set<String> getRoleByUserId(Long userId);
}




